package ServerDB;

import java.util.HashSet;
import java.util.Set;
/**
 * User's data in DB
 * @author Guy & Liel
 *
 */
public class User 
{
	private String userName;
	private String password;
	private String email;
	private Set<Folder> folders = new HashSet<Folder>();
	/**
	 * Default constructor 
	 */
	public User()
	{
		
	}
	/**
	 * get user name 
	 * @return String
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * set user name
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * get user's password
	 * @return String
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * Set user's password
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	/**
	 * get user's email
	 * @return String
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * set user's email
	 * @param email
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * Get set of folders that the user share
	 * @return set<Folder>
	 */
	public Set<Folder> getFolders() {
		return folders;
	}
	/**
	 * set a folders to share with user
	 * @param folders
	 */
	public void setFolders(Set<Folder> folders) {
		this.folders = folders;
	}
	/**
	 * add folder to user
	 * @param folder
	 */
	public void addFolder(Folder folder) {
		folders.add(folder);
	}
	
}
